package org.example.servicelogin.config;

import com.auth0.jwt.algorithms.Algorithm;
import jakarta.annotation.PostConstruct;
import org.example.servicelogin.utils.JwtUtil;
import org.example.servicelogin.utils.WXUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class YmlConfig {
    @Value("${jwt.secret}")
    public  String JWT_SECRET;

    @Value("${jwt.expireTime}")
    public  long JWT_EXPIRE_TIME;

    @PostConstruct
    public void init() {
        JwtUtil.SECRET = JWT_SECRET;
        JwtUtil.EXPIRE_TIME = JWT_EXPIRE_TIME;
    }
}
